import React from "react";
import {Layout} from 'antd';
import { useHistory}  from "react-router-dom";
import PageNavLink from "../../router/PageNavLink";
import PageRouters from "../../router/PageRouters";
const {Header, Sider, Content}=Layout;
export default function Home(){
    const history=useHistory();
    console.log("history", history);
    return (
        <Layout>
            <Header className="header">
                <div className="logo" />
            </Header>
            <Layout>
                <Sider width={180}>
                    <PageNavLink />
                </Sider>
                <Layout style={{ padding: '0 24px 24px' }}>
                    <Content style={{padding: 24, margin: 0, minHeight: 280,}}>
                        <PageRouters />
                    </Content>
                </Layout>
            </Layout>
        </Layout>
    )
}
